package cn.z2huo.demo.spring.cloud.alibaba.sentinel.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @GetMapping("/healthCheck")
    public String healthCheck() {
        return "server is ok!";
    }

    @RequestMapping(value="/")
    public String root(){
        return "index";
    }

    @RequestMapping(value="/index")
    public String index(){
        return "forward:/index.html";
    }

}
